package hello.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Intellige Idea.
 * Author hiberk
 * Date 2017/6/19 10:24
 * if there is a method route same as a route which is a class route.
 * then it will be ambiguous. And Class route is priority.
 */
@Controller
@RequestMapping("test/hello")
public class MultipleRoute {
    @RequestMapping(value = "here")
    @ResponseBody
    public String index() {
        return "this is MultipleRoute Controller";
    }
}
